package com.satoken.Controller;
import cn.dev33.satoken.annotation.SaCheckLogin;
import cn.dev33.satoken.annotation.SaCheckRole;
import cn.dev33.satoken.stp.StpUtil;
import io.lettuce.core.dynamic.annotation.Param;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("/user")
@SaCheckLogin
@SaCheckRole("user")
public class UserController {
    @RequestMapping(value = "/order",method = RequestMethod.GET)
    public String order(@Param(value = "goods_id") int goods_id){
        return "OK";
    }


}


